﻿using System;
using System.Windows;
using System.Windows.Markup;

namespace HeritageAcademy.Library.Controls
{
    public class DebugVisibility : MarkupExtension
    {
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            #if DEBUG
            return Visibility.Visible;
            #else
            return Visibility.Collapsed;
            #endif
        }
    }
}
